<!DOCTYPE html>
<head>
    <#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
    <#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
    <#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />

    <meta charset="utf-8">
    <title>课题基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <!--<link rel="stylesheet" href="/qbdmsStatic/style/forms/currencyCss.css">-->
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">

    <link rel="stylesheet" href="${ctx}/qbdmsStatic/public/ztree/zTreeStyle.css"/>
    <script src="${ctx}/qbdmsStatic/public/ztree/jquery.min.js"></script>
    <script src="${ctx}/qbdmsStatic/public/ztree/jquery.ztree.all.min.js"></script>
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body class="listBody">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdTecBasicmanage/get"
              lay-filter="wQbdTecBasicmanageDataForm">
            <div class="qbdms-formTitle">课题信息 <i class="qbdms-returnOn closeWindow">返回</i></div>
            <div class="qbdms-formBody">
                <@fillDept.dept id="tbxx"/>
                <div class="layui-row">
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="项目编号">项目编号<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input " lay-verify="required" name="fItemnumber"
                                   lay-reqtext="项目编号是必填项" maxlength="40">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="项目密级">项目密级<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="项目名称">项目名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput"  lay-reqtext="项目名称是必填项" lay-verify="required" name="fItemname"
                                   maxlength="40">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="课题类型">课题类型<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fTopictype" reqtext="课题类型是必填项" verify="required" nodeKey="ktlx" />
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="课题类别">课题类别<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fItemtype" reqtext="课题类别是必填项" verify="required" nodeKey="ktlb" />
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="技术领域">技术领域<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fClassification" reqtext="技术领域是必填项" verify="required" nodeKey="jzly" />
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="项目单位地址">项目单位地址</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fItemdeptaddress" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="拟试点型号">拟试点型号</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fTestmodel" maxlength="30">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="起止时间(年)">起止时间(年)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" class="layui-input" id="qzsj" name="fItemstartdate" readonly="readonly"
                                   placeholder="请输入">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="批复年度">批复年度</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fApprovedyear" readonly="readonly" class="layui-input" id="pfnd"
                                   placeholder="请输入">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="研究周期">研究周期</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="fResearchcycle" class="layui-input" readonly="readonly"
                                   placeholder="请输入">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
<!--                        <label class="layui-form-label qbdms-label" title="单位负责人">单位负责人</label>-->
<!--                        <div class="layui-input-block qbdms-input">-->
<!--                            <select name="fDeptchargeperson" lay-search="">-->
<!--                            </select>-->
<!--                        </div>-->
                        <label class="layui-form-label qbdms-label" title="单位负责人">单位负责人</label>
                        <button type="button" typeid="4" class="layui-btn qbdms-twoBtn selectorBtn">选择</button>
                        <div class="layui-input-block qbdms-input qbdms-inputIsButton">
                            <input type="text" name="fDeptchargeperson" placeholder="请选择"
                                   autocomplete="off" class="layui-input  selectorInput"
                                   maxlength="500" fieldname="groupMembers" readonly>
                            <input type="hidden" name="fDeptchargepersonid" placeholder="请输入单位负责人ID"
                                   autocomplete="off" class="layui-input  textInput getIds"
                                   fieldname="registerdeptid">
                        </div>



                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="主承担单位">主承担单位</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" readonly="readonly"
                                   name="fMainunit"
                                   maxlength="100" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
<!--                        <label class="layui-form-label qbdms-label" title="课题负责人">课题负责人</label>-->
<!--                        <div class="layui-input-block qbdms-input">-->
<!--                            <select name="fTopicchargeperson" lay-search="">-->
<!--                            </select>-->
<!--                        </div>-->
                        <label class="layui-form-label qbdms-label" title="课题负责人">课题负责人</label>
                        <button type="button" typeid="4" class="layui-btn qbdms-twoBtn selectorBtn">选择</button>
                        <div class="layui-input-block qbdms-input qbdms-inputIsButton">
                            <input type="text" name="fTopicchargeperson" placeholder="请选择"
                                   autocomplete="off" class="layui-input  selectorInput"
                                   maxlength="500" fieldname="groupMembers" readonly>
                            <input type="hidden" name="fTopicchargepersonid" placeholder="请输入课题负责人ID"
                                   autocomplete="off" class="layui-input  textInput getIds"
                                   fieldname="registerdeptid">
                        </div>


                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="联系电话">联系电话</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fTelephonenumber" lay-verify="numPhone"
                                   maxlength="12" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="联合承担单位">联合承担单位</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fUniondept" maxlength="30">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="立项批复文号">立项批复文号</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fItemapprovalnumber" maxlength="30">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="任务书批复文号">任务书批复文号</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fTaskapprovalnumber" maxlength="30">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="批复总经费">批复总经费(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" lay-verify="money"
                                   class="layui-input textInput" name="fApprovalmoney" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="国拨资金(万元)">国拨资金(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" lay-verify="money"
                                   class="layui-input textInput" name="fNationalmoney" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="自筹资金(万元)">自筹资金(万元)</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" lay-verify="money"
                                   class="layui-input textInput" name="fRaisemoney" maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="是否完成审计">是否完成审计</label>
                        <div class="layui-input-block qbdms-input">
                            <select name="fIfcompleteaudit" maxlength="20">
                                <option></option>
                                <option value="是">是</option>
                                <option value="否">否</option>
                            </select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="计划审计时间">计划审计时间</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input dateTimeFiled input-right time-init" name="fPlanauditdate" readonly="readonly"
                                   format="yyyy-MM-dd" datetype="date">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="审计实际完成时间">审计实际完成时间</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input dateTimeFiled input-right time-init" name="fActualauditdate" readonly="readonly"
                                   format="yyyy-MM-dd" datetype="date">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="是否完成验收">是否完成验收</label>
                        <div class="layui-input-block qbdms-input">
                            <select name="fObjectfield" lay-filter="sfwcys" maxlength="20">
                                <option></option>
                                <option value="是">是</option>
                                <option value="否">否</option>
                            </select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="计划验收时间">计划验收时间</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" readonly="readonly"
                                   class="layui-input dateTimeFiled input-right time-init" name="fPlancheckdate">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="验收完成时间">验收完成时间</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" readonly="readonly"
                                   class="layui-input dateTimeFiled input-right time-init" name="fActualcheckdate">
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label" title="是否调整">是否调整</label>
                        <div class="layui-input-block qbdms-input">
                            <select name="fIfadjustment" maxlength="2000">
                                <option></option>
                                <option value="是">是</option>
                                <option value="否">否</option>
                            </select>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">备注</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入" name="fMemo"
                                          maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">必要性</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入"
                                          name="fNecessity" maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">对应的要点</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入"
                                          name="fKeypoints" maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">主要研究目标</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入"
                                          name="fTarget" maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">主要研究内容</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入"
                                          name="fContent" maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">预期成果物</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入"
                                          name="fAchievements" maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">针对解决的重大问题</label>
                        <div class="layui-input-block qbdms-input">
                                <textarea rows="2" class="layui-textarea" placeholder="请输入"
                                          name="fMajorproblems" maxlength="300"></textarea>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">建议书</label>
                        <div class="layui-input-block qbdms-input">
                            <div class="doNotDelThisDiv layui-input-inline">
                                <div class="uploadFileCont">
                                    <input type="button"
                                           class="layui-btn fileUpload qbdms-fileUp iconfont iconupload"
                                           value="上传附件"
                                            id="fRecommendationfileList"> <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过200M</i>
                                    <input type="text" id="fRecommendation" class="uploadInput"
                                           name="fRecommendation" fieldname="fRecommendation" style="display: none">
                                    <div class="uploadFileList" fileUploadName="fRecommendation"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="qbdms-oneForm  ">
                        <label class="layui-form-label qbdms-label">建议书页数</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off" lay-verify="num"
                                   class="layui-input" name="fRecommendationpages"  maxlength="15" style="width: 233px;">
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">任务书</label>
                        <div class="layui-input-block qbdms-input">
                            <div class="doNotDelThisDiv layui-input-inline">
                                <div class="uploadFileCont">
                                    <input type="button"
                                            class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                            id="fTaskbookfileList" value="上传附件"> <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过200M</i>
                                    <input type="text" id="fTaskbook" class="uploadInput" name="fTaskbook"
                                           fieldname="fTaskbook" style="display: none">
                                    <div class="uploadFileList" fileUploadName="fTaskbook"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="qbdms-textarea  ">
                        <label class="layui-form-label qbdms-label">验收报告</label>
                        <div class="layui-input-block qbdms-input">
                            <div class="doNotDelThisDiv layui-input-inline">
                                <div class="uploadFileCont">
                                    <input type="button"
                                            class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                            id="fAcceptancereportfileList" value="上传附件"> <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过200M</i>
                                    <input type="text" id="fAcceptancereport" class="uploadInput"
                                           name="fAcceptancereport" fieldname="fAcceptancereport"
                                           style="display: none">
                                    <div class="uploadFileList" fileUploadName="fAcceptancereport"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="qbdms-textarea   yysxmcgxxtb">
                        <div>已验收项目成果信息填报(“是否完成验收”字段选择为“是”时，展示下面的数据项，要求为必填项)</div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">突破关键技术<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="突破关键技术是必填项"
                                   name="fKeytechnology" maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">原理样机<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fPrototype"
                                   lay-reqtext="原理样机是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">材料样品<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fSample"
                                   lay-reqtext="材料样品是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">样件<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fSamplenum"
                                   lay-reqtext="样件是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">装备<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fEquipment"
                                   lay-reqtext="装备是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">集成验证或演示系统<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fDemosystem"
                                   lay-reqtext="集成验证或演示系统是必填项"
                                   maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">数据库<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fDatabase"
                                   lay-reqtext="数据库是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">技术标准<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="技术标准是必填项"
                                   name="fTechnicalstandard" maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">工艺规范<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="工艺规范是必填项"
                                   name="fProcessspecification" maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">申请发明专利<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="申请发明专利是必填项"
                                   name="fApplicationpatent" maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">授权发明专利<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="授权发明专利是必填项"
                                   name="fAuthorizedpatent" maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">商标<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fTrademark"
                                   lay-reqtext="商标是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">软件<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fSoftware"
                                   lay-reqtext="软件是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">软件著作权<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fCopyright"
                                   lay-reqtext="软件著作权是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">论文<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fPaper"
                                   lay-reqtext="论文是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">专著<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num" name="fMonograph"
                                   lay-reqtext="专著是必填项"
                                   maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">培养研究生<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="培养研究生是必填项"
                                   name="fGraduatestudent" maxlength="50" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">应用型号产品<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-verify="num"
                                   lay-reqtext="应用型号产品是必填项"
                                   name="fModelproducts" maxlength="25" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">国防科技工业科技报告<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   lay-reqtext="国防科技工业科技报告是必填项"
                                   class="layui-input textInput" lay-verify="num" name="fReports"
                                   maxlength="50">
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">组织验收部门<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <select name="fCheckdept" lay-reqtext="组织验收部门是必填项" lay-filter="dept" maxlength="50"></select>
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">评定等级<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="fRatinglevel" reqtext="评定等级是必填项" nodeKey="pddj" />
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">主审专家<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-reqtext="主审专家是必填项" name="fPresidingexpert" maxlength="20">
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">评审组组长<span
                                style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" lay-reqtext="评审组组长是必填项" name="fAssessmentleader" maxlength="20">
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">验收批复文号</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" placeholder="请输入" autocomplete="off"
                                   class="layui-input textInput" name="fCheckapprovalnumber"
                                   maxlength="20" >
                        </div>
                    </div>
                    <div class="qbdms-oneForm   yysxmcgxxtb">
                        <label class="layui-form-label qbdms-label">是否结题</label>
                        <div class="layui-input-block qbdms-input">
                            <select name="fIfconclusion" maxlength="20" lay-filter="conclusion">
                                <option></option>
                                <option value="是">是</option>
                                <option value="否">否</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <p class="qbdms-SubTableTitle"><span>经费及计划</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过200M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"
                   id="add"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdTecFundsplans subFormTable"
                       id="wQbdTecFundsplans" style="min-width: 2333px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 40px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 80px">
                            年度<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 132px">
                            年度申请经费(万元)<span style="color: red;">*</span>
                        </td>

                        <td class="temSpace subDialogShowState" style="width: 145px">
                            本年度其他资金(万元)<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 145px">
                            已安排财政投资(万元)<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 145px">
                            已安排其他资金(万元)<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 114px">
                            年度主要内容<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 114px">
                            年度研究成果<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 162px">
                            实际完成研究内容<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            实际完成成果物<span style="color: red;">*</span>
                        </td>

                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" placeholder="请输入" requiredFlag="required"
                                   autocomplete="off" class="layui-input datetime"
                                   lay-reqtext="年度是必填项" readonly="readonly"
                                   name="s:wQbdTecFundsplans:fYear">
                        </td>

                        <td class="temSpace qbdms-temTable-td qbdms-money">
                            <input type="text" title="请输入年度申请经费"
                                   requiredFlag="required|money" autocomplete="off"
                                   lay-reqtext="年度申请经费是必填项" my-verify = "年度申请经费(万元)"
                                   class="layui-input" name="s:wQbdTecFundsplans:fFunds" maxlength="25">
                        </td>

                        <td class="temSpace qbdms-temTable-td qbdms-money">
                            <input type="text" title="请输入本年度其他资金"
                                   requiredFlag="required|money" autocomplete="off"
                                   lay-reqtext="本年度其他资金是必填项" my-verify = "本年度其他资金(万元)"
                                   class="layui-input" name="s:wQbdTecFundsplans:fOtherfunds" maxlength="25">
                        </td>
                        <td class="temSpace qbdms-temTable-td qbdms-money">
                            <input type="text" title="请输入已安排财政投资"
                                   requiredFlag="required|money" autocomplete="off"
                                   lay-reqtext="已安排财政投资是必填项"
                                   class="layui-input" name="s:wQbdTecFundsplans:fArrangedfinancialfun"
                                   maxlength="25">
                        </td>
                        <td class="temSpace qbdms-temTable-td qbdms-money">
                            <input type="text" title="请输入已安排其他资金"
                                   requiredFlag="required|money"
                                   autocomplete="off" class="layui-input"
                                   lay-reqtext="已安排其他资金是必填项"
                                   name="s:wQbdTecFundsplans:fArrangedotherfunds"
                                   maxlength="25">
                        </td>

                        <td class="temSpace qbdms-temTable-td">
                                <textarea rows="2" title="请输入年度主要内容" autocomplete="off"
                                          requiredFlag="required" class="layui-input"
                                          lay-reqtext="年度主要内容是必填项"
                                          name="s:wQbdTecFundsplans:fContent" maxlength="200"></textarea>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                                <textarea rows="2" title="请输入年度研究成果" autocomplete="off"
                                          requiredFlag="required" class="layui-input"
                                          lay-reqtext="年度研究成果是必填项"
                                          name="s:wQbdTecFundsplans:fAchievements" maxlength="200"></textarea>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                                <textarea rows="2" title="请输入实际完成研究内容" autocomplete="off"
                                          requiredFlag="required" class="layui-input"
                                          lay-reqtext="实际完成研究内容是必填项"
                                          name="s:wQbdTecFundsplans:fActualcontent"
                                          maxlength="200"></textarea>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp" id="fSkillcerfileList" value="上传附件" requiredFlag="fileRequired">
                                <!--<button type="button"-->
                                        <!--class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"-->
                                        <!--id="fSkillcerfileList">上传附件</button>-->
                                <input type="text" class="uploadInput"
                                       name="s:wQbdTecFundsplans:fActualachievements"
                                       fieldname="s:wQbdTecFundsplans:fActualachievements"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdTecFundsplans:fActualachievements"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="qbdms-SubTableTitle"><span>归档成果物表单</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过200M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdTecAchievements subFormTable"
                       style="min-width: 1060px"
                       id="wQbdTecAchievements">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 40px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" width="200px">
                            类别<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" width="240px">
                            编写人或单位<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" width="240px">
                            成果物名称<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            附件<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace  qbdms-temTable-td">
                            <!--<div class="temSpace temSpaceCss">-->
                            <@dicSelect.dic name="s:wQbdTecAchievements:fCategory"
                            z_verify="required" reqtext="类别是必填项" nodeKey="gdcgw" />
                            <!--</div>-->
                        </td>
                        <td class="temSpace  qbdms-temTable-td">
                            <!--<div class="temSpace temSpaceCss">-->
                            <input type="text" title="请输入编写人或单位" requiredFlag="required"
                                   style="width: 100%" autocomplete="off"
                                   class="layui-input"
                                   name="s:wQbdTecAchievements:fCompilingperson"
                                   lay-reqtext="编写人或单位是必填项"
                                   maxlength="100">
                            <!--</div>-->
                        </td>
                        <td class="temSpace  qbdms-temTable-td">
                            <!--<div class="temSpace temSpaceCss">-->
                            <input type="text" title="请输入成果物名称" requiredFlag="required"
                                   autocomplete="off" style="width: 100%"
                                   class="layui-input"
                                   name="s:wQbdTecAchievements:fAchievementname"
                                   lay-reqtext="成果物名称是必填项"
                                   maxlength="100">
                            <!--</div>-->
                        </td>
                        <td class="temSpace  qbdms-temTable-td">
                            <!--<div class="temSpace ">-->
                            <div class="uploadFileCont">
                                <input type="button" requiredFlag="fileRequired"
                                        class="layui-btn iconfont iconupload fileUpload qbdms-fileUp" value="上传附件">
                                <input type="text" class="uploadInput"
                                       name="s:wQbdTecAchievements:fEnclosure"
                                       fieldname="s:wQbdTecAchievements:fEnclosure"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdTecAchievements:fEnclosure"></div>
                            </div>
                            <!--</div>-->
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                       maxlength="50" fieldname="id">
                <input type="text" name="fMainunitid" placeholder="请输入主承担单位ID"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="fMainunitid">
                <input type="text" name="reportStatusTemp" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportStatusTemp">
                <input type="text" name="reportStatus" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportStatus">
                <input type="text" name="reportDate" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportDate">
                <input type="text" name="reportReason" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportReason">
                <input type="text" name="returnmsg" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="returnmsg">
                <input type="text" name="fTechnology" placeholder="组织负责人code"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="returnmsg">
            </div>

            <div class="layui-form-item btnformItem">
                <p>
                    <span id="hideAndShow" style="display: none;">
                        <a lay-submit lay-filter="wQbdTecBasicmanage" class="layui-btn btn-n privateSubmit qbdms-oneBtn"
                           requrl="${ctx}/qbdms/wQbdTecBasicmanage/save">提交</a>
                    </span>
                    <button type="reset" id="closeWindow" style="margin-left: 10px;"
                            class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消
                    </button>
                </p>
            </div>
        </form>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>

    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'setter', 'layer', 'propsHandle', 'upload', 'common', 'commonDialog','laydate', 'jquery','publicMethods','qbdmsForm'], function () {

        // -----常量声明----------
        var $ = layui.jquery,
            laydate = layui.laydate,
            setter = layui.setter,  // 配置信息
            layer = layui.layer,
            propsHandle = layui.propsHandle,
            upload = layui.upload,
            publicMethods = layui.publicMethods,
            form = layui.qbdmsForm,
            formId = '${formDefId}' || '',
            defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                formAreaInfo: 'html',
                temDate: '.temDate',
                uploadFileBtn: '.uploadFileBtn',
                uploadImgBtn: '.uploadImgBtn',
                richTextArea: '.richTextArea',
                selectInput: '.selectInput',
                radioOptionCont: '.radioOptionCont',
                dataLexiTree: '.dataLexiTree',
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分

        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        $(".subContTem").hide()
        // 子表初始化事件
        temQuery.initSubEvent(defProps, serverPath, setter);
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdTecBasicmanage/view/list';
        });

        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }
        form.verify({
            num: function (value,item) {
                // 如果值为空，不触发校验
                if (value && !new RegExp(/^[1-9]\d*$/).test(value)) return common.verifyTitleAdd(item) +"只能输入非负整数";
            },
            numPhone: function (value,item) {
                // 如果值为空，不触发校验
                // if (value && !new RegExp(/^1[3456789]\d{9}$/).test(value)) return "手机号码有误";
                if (value && !new RegExp(/0?(13|14|15|17|18|19)[0-9]{9}/).test(value) && !new RegExp(/^([0-9]{1,6}[-]?)?([0][1-9][0-9]{1,2}[-]?)?[0-9]{6,8}$/).test(value)) return common.verifyTitleAdd(item) +"请输入正确的电话";
            },
            money: function (value,item) {
                if (value && !new RegExp(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0)$)|(^[0-9]\.[0-9]([0-9])?$)/).test(value)) {
                    return common.verifyTitleAdd(item) +'请输入数字且小数最多两位';
                }
            }
        });
        //年范围
        laydate.render({
            elem: '#qzsj'
            , type: 'year'
            , range: true
            , trigger: 'click'
            , done: function (value, date, endDate) {
                $("input[name='fResearchcycle']").val(endDate.year - date.year + 1);
            }
        });
        //年选择器
        laydate.render({
            elem: '#pfnd'
            , type: 'year'
            , trigger: 'click'
        });
        //年选择器
        laydate.render({
            elem: '#yjzq'
            , type: 'year'
            , trigger: 'click'
        });
        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }
        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdTecBasicmanageDataForm',
            idValue: "${id}",
            primary: "id",
            beforeSubmitFun: function (data) {
                //- 附件密级不能高于表单密级 开始 ------------------------------------------------------
                var selectMaxVal = 0;
                var formSecretVal = $("[name='secret']").val();
                $(".fileSecLevel select").each(function () {
                    selectMaxVal = selectMaxVal >= $(this).val() ? selectMaxVal : $(this).val();
                });

                if (selectMaxVal > formSecretVal) {
                    layer.msg('附件密级不能高于表单密级。', {icon: 5});
                    return false;
                }
                //- 附件密级不能高于表单密级 结束 ------------------------------------------------------
                $(".uploadFileList").each(function (i,v) {
                    common.constructFileStr(v)
                });
                //- 子表数据 开始 ------------------------------------------------------
                var sub = [];
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    $(this).find('tr.temSpace').each(function (i, item) {    /*修复需要提交隐藏的行数据的bug*/
                        if (i > 1) {
                            var row = {};
                            var objRow = $(this);
                            $("input:text[name^='s:'],input[type='hidden'][name^='s:'],textarea[name^='s:'],select[name^='s:'],ul[name^='m:']", objRow).each(function () {
                                var name = $(this).attr('name').replace(/.*:/, '');
                                row[name] = $(this).val();
                            });
                            row["sort"] = i - 1;
                            table.fields.push(row);
                        }
                    });
                    data.field[table.tableName] = table.fields;
                });
                //- 子表数据 结束 ------------------------------------------------------

                var files=[];
                //整理上传附件的隐藏域，将提交的字符串转为json对象
                $(".uploadInput").each(function () {
                    var uploadName = $(this).attr("name");
                    if (!$(this).val()) {
                        return;

                    }
                    data.field[uploadName] = eval($(this).val());
                    files=files.concat(eval($(this).val()));
                });

                return common.setFileLevel(files);
            },
            getCallback: function (data) {
                $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                $("input[name='fDeptchargeperson']").attr("ids", data.data.fDeptchargepersonid);
                $("input[name='fTopicchargeperson']").attr("ids", data.data.fTopicchargepersonid);
//                $("#tbxx").text("填报信息:【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】");
                //-修改页面 初始化附件组件 开始 ------------------------------------------
                $('.uploadFileList').each(function () {
                    var fileUploadName = $(this).attr("fileUploadName");
                    var jsonFile = data.data[fileUploadName];
                    var files = eval(jsonFile);

                    if (files) {
                        for (var i = 0; i < files.length; i++) {
                            var fileLevel = files[i].fileLevel;
                            var fileLevelText = files[i].fileLevelText;
                            var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                            var newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)"><i class="iconfont data-iconcommon_fujian" style="margin-right: 5px"></i>' + files[i].fileName + '</span><i class="iconfont data-iconcommon_close deleteFile" ></i></span>';
                            // newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + '><span class="file-name" onclick="downFile(this)">' + files[i].fileName + '</span><i class="layui-icon layui-icon-delete deleteFile" ></i></span>';
                            $(this).html(newStr);
                            $(this).find("select:last").val(fileLevel);
                            // $(this).find("select:last").attr("disabled", "disabled");
                        }
                    }
                });
                //-修改页面 初始化附件组件 结束 ------------------------------------------
                // $(".uploadFileList").each(constructFileStr);

                //-修改页面 初始化子表 开始 ------------------------------------------
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    table.fields = data.data[table.tableName];
                    for (var i = 0, len = table.fields.length; i < len; i++) {
                        var dataRow = table.fields[i];
                        var temp = $("." + table.tableName).prev().click();
                        //这里有子表表头占一行，子表隐藏行占一行，所以取需要赋值的行时，需要temp=i+2
                        var domRow = $(this).find("tr.temSpace:eq(" + (i * 1 + 2) + ")");
                        $.each(dataRow, function (j, val) {
                            var domItem = domRow.find("[name$='" + j + "']");
                            if (domItem) {
                                domItem.val(val);
                            }
                        });
                    }
                });
                //-修改页面 初始化子表附件组件 开始 ------------------------------------------.
                $('.subFormTable').each(function (index, element) {
                    var id = $(this).attr('id');
                    $(element).find(".uploadFileList").each(function (index, element) {
                        if (index == '0') {
                            return true;
                        }
                        var fileUploadName = $(this).attr("fileUploadName");
                        var text = fileUploadName.split(":");
                        var jsonFile = "data.data." + id + "[" + (index * 1 - 1) + "]" + "." + text[2];
                        var files = eval(eval(jsonFile));
                        if (files) {
                            for (var i = 0; i < files.length; i++) {
                                var fileLevel = files[i].fileLevel;
                                var fileLevelText = files[i].fileLevelText;
                                var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline" style="margin: 8px 0 0;">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                                var newStr = '<span class="file-id" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">'+ fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)"><i class="iconfont data-iconcommon_fujian" style="margin-right: 5px"></i>' + files[i].fileName + '</span>' + '<i class="iconfont data-iconcommon_close deleteFile" ></i></span>';
                                $(this).html(newStr);
                                $(this).siblings("input[type=button]").hide();
                                $(this).find("select:last").val(fileLevel);
                                // $(this).find("select:last").attr("disabled", "disabled");
                            }
                        }
                    });
                });
                //-修改页面 初始化子表附件组件 结束 ------------------------------------------

                //-修改页面 初始化已验收项目成果信息填报相关数据 开始 ------------------------------------------
                var fObjectfield = data.data["fObjectfield"];
                initYysxmcgxxtbDiv(fObjectfield);
                //-修改页面 初始化已验收项目成果信息填报相关数据 结束 ------------------------------------------
            },
            updateCallback: function (data) {
                if (publicMethods._filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    layer.confirm(data.msg,{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdTecBasicmanage/view/list';
                    });
                } else {
                    layer.confirm(data.msg,{title: false,skin: 'confirm-class'});
                }
                return false;
            }

        });
        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        }

        // 删除
        $(document).on('click', '.deleteFile', function () {
            $(".uploadFileList").each(function (i,v) {
                common.constructFileStr(v)
            });
        });

        //-- 子表数据 结束 --------------------------------------------------------------
        var secSelect = '<@secSelect.sec_select data_src=1 hasBlank=false/>'
        var count = 1;
        $(document).on('click', '.addFormTr1', function () {
            count += 1;
            var modetype = $(this).attr('modetype'),
                copyObj = $(this).parent().children('.subFormTable'),
                copyHtm = copyObj.find('tr').eq(1);
            if (modetype === '2') {
                //在这里做一个转换，控制子表隐藏行的必填
                var copyHtmlStr = copyHtm.html();
                copyHtmlStr = copyHtmlStr.replace(/requiredflag/g, "lay-verify");
                // 表格
                copyObj.append('<tr class="temSpace">' + copyHtmlStr + '</tr>');
                // copyObj.append('<tr class="temSpace">' + copyHtm.html() + '</tr>');
                var trArr = copyObj.find('tr');
                trArr.eq(trArr.length - 1).find('td').eq(0).find('.temTag').html(trArr.length - 2);
                // trArr.eq(trArr.length - 1).find('td').eq(6).find('button').attr("id","fSkillcerfileList"+count);
                trArr.eq(trArr.length - 1).find('.fileUpload').attr("id", "fSkillcerfileList" + count);

                trArr.eq(trArr.length - 1).find('[isinit="1"]').each(function (i, item) {
                    $(item).attr('isinit', '2');
                });
                if (trArr.length > 3) {
                    trArr.eq(trArr.length - 1).find('[type=radio]').each(function (i, item) {
                        $(item).attr('name', (trArr.eq(1).find('[type=radio]').eq(i).attr('name')) + '_' + (trArr.length - 2))
                    });
                }
                temQuery.initTemEvent(defProps, serverPath, setter);
            } else if (modetype === '1') {
                // updateTr(copyObj, copyHtm);
            }
            common.uploadfun("#" + "fSkillcerfileList" + count,{
                acceptMime:'${wjszsdsxlx}',
                exts:'${fileManagementUploadType}',
                secSelect:secSelect,
                isSub:true
            })
            form.render();
            lay('.datetime').each(function () {
                laydate.render({
                    elem: this
                    , type: 'year'
                    , trigger: 'click'
                });
            });
            $(".datetime").removeAttr("lay-key");
            publicMethods.bottomFixd()
        });
        common.uploadfun(".fileUpload",{
            acceptMime:'${wjszsdsxlx}',
            exts:'${fileManagementUploadType}',
            secSelect:secSelect,
            isSub:false
        });
        var id = "${id}";
        // 责任人
        var zrrList = eval('${dwzrr}');
        var zrrHtml = "<option></option>";
        for (var i = 0, l = zrrList.length; i < l; i++) {
            for (var key in zrrList[i]) {
                zrrHtml += "  <option value='" + zrrList[i][key] + "'>" + zrrList[i][key] + "</option>";
            }
        }
        $("select[name='fDeptchargeperson']").html(zrrHtml);
        $("select[name='fTopicchargeperson']").html(zrrHtml);

        if ('${id}' === "") {
            // 新增页面默认主承单位为当前单位
            $("input[name='fMainunit']").val('${zcdw}');
            $("input[name='fMainunitid']").val('${zcdwId}');
        }
        form.render();
        //-  已验收项目成果信息填报 开始 ------------------------------------------------------
        $(".yysxmcgxxtb").hide(); // 默认隐藏

        form.on('select(conclusion)', function (data) {
            if (data.value === '是') {
                layer.alert(publicMethods.confirmStyle("所有课题成果物需上传本系统！"),{title: false,skin: 'confirm-class'});
            }
        });
        function initYysxmcgxxtbDiv(fObjectfield) {
            var checkdepts = '${checkdepts}';
            var val = fObjectfield.value ? fObjectfield.value : fObjectfield;
            var validArr = ["fKeytechnology",
                "fPrototype",
                "fSample",
                "fSamplenum",
                "fEquipment",
                "fDemosystem",
                "fDatabase",
                "fTechnicalstandard",
                "fProcessspecification",
                "fApplicationpatent",
                "fAuthorizedpatent",
                "fTrademark",
                "fSoftware",
                "fCopyright",
                "fPaper",
                "fMonograph",
                "fGraduatestudent",
                "fModelproducts",
                "fReports",
                "fCheckdept",
                "fRatinglevel",
                "fPresidingexpert",
                "fAssessmentleader",
                "fCheckapprovalnumber",
                "fIfconclusion"];
            if (val === "是") {
                $(".yysxmcgxxtb").show();
                common.setComponentRequired(validArr, true,null,checkdepts);
                form.render();
            } else {
                common.clearComponentVal(validArr);
                $(".yysxmcgxxtb").hide();
                common.setComponentRequired(validArr, false,null,checkdepts);
            }
        }
        form.on('select(dept)', function (data) {
            $("input[name='fTechnology']").val(data.elem[data.elem.selectedIndex].getAttribute("code"));
        });
        publicMethods.bottomFixd()
        form.on('select', function(data){
            publicMethods.bottomFixd()
        });
        form.on('select(sfwcys)', initYysxmcgxxtbDiv);
    });
</script>
</body>
</html>